/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_ruta_programadaDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression rp_id_ruta_programada;
	public final DateExpression rp_fecha_ruta;
	
	public Tbv_ruta_programadaDetachedCriteria() {
		super(orm.Tbv_ruta_programada.class, orm.Tbv_ruta_programadaCriteria.class);
		rp_id_ruta_programada = new IntegerExpression("rp_id_ruta_programada", this.getDetachedCriteria());
		rp_fecha_ruta = new DateExpression("rp_fecha_ruta", this.getDetachedCriteria());
	}
	
	public Tbv_ruta_programadaDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tbv_ruta_programadaCriteria.class);
		rp_id_ruta_programada = new IntegerExpression("rp_id_ruta_programada", this.getDetachedCriteria());
		rp_fecha_ruta = new DateExpression("rp_fecha_ruta", this.getDetachedCriteria());
	}
	
	public Tbv_rutaDetachedCriteria createTbv_rutaru_id_rutaCriteria() {
		return new Tbv_rutaDetachedCriteria(createCriteria("tbv_rutaru_id_ruta"));
	}
	
	public Tbv_bitacora_rutaDetachedCriteria createTbv_bitacora_rutaCriteria() {
		return new Tbv_bitacora_rutaDetachedCriteria(createCriteria("ORM_Tbv_bitacora_ruta"));
	}
	
	public Tbv_maquina_tbv_ruta_programadaDetachedCriteria createTbv_maquina_tbv_ruta_programadaCriteria() {
		return new Tbv_maquina_tbv_ruta_programadaDetachedCriteria(createCriteria("ORM_Tbv_maquina_tbv_ruta_programada"));
	}
	
	public Tbv_ruta_programada uniqueTbv_ruta_programada(PersistentSession session) {
		return (Tbv_ruta_programada) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tbv_ruta_programada[] listTbv_ruta_programada(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tbv_ruta_programada[]) list.toArray(new Tbv_ruta_programada[list.size()]);
	}
}

